//
//  QXSingleYYLabelCell.m
//  QuXiang
//
//  Created by Duncan on 2020/8/15.
//  Copyright © 2020 NanHuaiZi. All rights reserved.
//

#import "QXSingleYYLabelCell.h"

@implementation QXSingleYYLabelCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubviews:[NSArray arrayWithObjects:self.yyLabel, nil]];
        [self masonryLayout];
    }
    return self;
}

#pragma mark ------- Lazy Methods -------

- (void)masonryLayout {
    [self.yyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.contentView);
    }];
}

- (YYLabel *)yyLabel {
    if (!_yyLabel) {
        _yyLabel = [[YYLabel alloc] init];
        _yyLabel.textColor = k_Color_TipColor;
        _yyLabel.textAlignment = NSTextAlignmentCenter;
        _yyLabel.font = kAdaptedFontSize(12);
    }
    return _yyLabel;
}

@end
